package com.lone.design.pattern.creational.prototype.deep;

/**
 * @author Lone
 * @date 2021/9/24 15:02 周五
 */
public class Citation implements Cloneable{
    // private String name;
    private Student student;

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    /*public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }*/

    @Override
    public Citation clone() throws CloneNotSupportedException {
        return (Citation) super.clone();
    }

    public void show() {
        System.out.println(student.getName() + "是2021级三好学生");
    }
}
